package com.guigu.lzw.controller;

import com.guigu.lzw.service.MedicalService;
import com.guigu.pojo.Medical;
import com.guigu.pojo.Setmeal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class HealthFiles {
    @Autowired
    MedicalService ms;
    @ResponseBody
    @RequestMapping("findMedical")
    public Medical findMedical(@RequestBody Medical medical){
        return ms.query(medical);
    }
}
